package com.atom.module.author.service.impl;

import com.atom.module.author.mapper.AuthorMapper;
import com.atom.module.author.pojo.entity.Author;
import com.atom.module.author.service.AuthorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthorServiceImpl implements AuthorService {

    @Autowired
    private AuthorMapper authorMapper;

    @Override
    public Author getAuthorByAccount(String account) {
        return authorMapper.selectByAccount(account);
    }

    @Override
    public List<Author> listAccount() {
        return authorMapper.selectAll();
    }
}
